package com.sigmatrix.h5.enums;

/**
 * 
 *@ClassName: WalletType
 *@Description:零钱包类型
 *@author MH
 *@date 2018年1月24日 下午3:03:05
 */
public enum WalletType {
	/**
	 * 个人零钱包
	 */
	PERSONAL_WALLET(1,"PERSONAL_WALLET"),
	
	/**
	 * 企业零钱包
	 */
	ENT_WALLET(2,"ENT_WALLET");
	
	public Integer value;
	public String name;
	
	private WalletType(Integer value, String name) {
		this.value = value;
		this.name = name;
	}
	
	public static boolean isEntWallet(Integer walletType){		
		if(WalletType.ENT_WALLET.value.equals(walletType)){
			return true;
		}
		return false;
	}
	
	public static boolean isPersonalWallet(Integer walletType){		
		if(WalletType.PERSONAL_WALLET.value.equals(walletType)){
			return true;
		}
		return false;
	}
	
	
}
